package com.shxc.smarttrade.other.model;

/**
 * 登录model
 */
public class LoginModel {

    /**
     * data : {"user":{"accessToken":"5659b93d062047bf05de85120d73f3c52646f93b598992594afdb0b228e94f908b956f81dc22cd7dbb50639b2a58ecd520ac6b872b9c21c11ae386ce790f737f","telephone":"183****1712","userKey":"477be69a812dc94842d7109a8d46b6de","userId":40}}
     * err_code : 0
     * err_msg : successe
     */

    private DataBean data;
    private String err_code;
    private String err_msg;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getErr_code() {
        return err_code;
    }

    public void setErr_code(String err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public static class DataBean {
        /**
         * user : {"accessToken":"5659b93d062047bf05de85120d73f3c52646f93b598992594afdb0b228e94f908b956f81dc22cd7dbb50639b2a58ecd520ac6b872b9c21c11ae386ce790f737f","telephone":"183****1712","userKey":"477be69a812dc94842d7109a8d46b6de","userId":40}
         */

        private UserBean user;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public static class UserBean {
            /**
             * accessToken : 5659b93d062047bf05de85120d73f3c52646f93b598992594afdb0b228e94f908b956f81dc22cd7dbb50639b2a58ecd520ac6b872b9c21c11ae386ce790f737f
             * telephone : 183****1712
             * userKey : 477be69a812dc94842d7109a8d46b6de
             * userId : 40
             */

            private String accessToken;
            private String telephone;
            private String userKey;
            private int userId;
            private boolean firstLogin;

            public boolean isFirstLogin() {
                return firstLogin;
            }

            public void setFirstLogin(boolean firstLogin) {
                this.firstLogin = firstLogin;
            }

            public String getAccessToken() {
                return accessToken;
            }

            public void setAccessToken(String accessToken) {
                this.accessToken = accessToken;
            }

            public String getTelephone() {
                return telephone;
            }

            public void setTelephone(String telephone) {
                this.telephone = telephone;
            }

            public String getUserKey() {
                return userKey;
            }

            public void setUserKey(String userKey) {
                this.userKey = userKey;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }
        }
    }
}
